package dominio;

import java.sql.SQLException;

import persistenca.Agente;

public class GestorBillete {
	Agente agente ;
	/**
	 * 
	 * @param b
	 * @throws Exception 
	 */
	public GestorBillete() throws Exception{
		agente=Agente.getAgente();
	}
	public int insert(Billete b) throws SQLException, Exception {
		// TODO - implement GestorBillete.insert
		return agente.insert("INSERT INTO BILLETES VALUES ("+b.getId()+","+b.getPrecio()+","+b.getViaje().getId()+",'"+b.getCliente().getDni()+"','"+b.getAsiento()+"');");
	}

	/**
	 * 
	 * @param b
	 */
	public void update(Billete b) {
		// TODO - implement GestorBillete.update
		throw new UnsupportedOperationException();
	}

	/**
	 * 
	 * @param b
	 */
	public void delete(Billete b) {
		// TODO - implement GestorBillete.delete
		throw new UnsupportedOperationException();
	}

	/**
	 * 
	 * @param b
	 */
	public void read(Billete b) {
		// TODO - implement GestorBillete.read
		throw new UnsupportedOperationException();
	}

	public void readAll() {
		// TODO - implement GestorBillete.readAll
		throw new UnsupportedOperationException();
	}

}